package com.peanut.baby.util;

import android.graphics.Color;

import java.util.Random;

public class ColorUtils {
    static int[] colors;
    public static int getRandomTagBgColor(){
        if(colors == null){
            colors = new int[]{Color.BLUE,Color.parseColor("#660099"),Color.parseColor("#FF0099"),Color.parseColor("#990000"),Color.parseColor("#FF9900"),Color.parseColor("#9900FF")};
        }
        Random random = new Random();
        int index = random.nextInt(colors.length);
        if(index == colors.length){
            index = index - 1;
        }
        return colors[index];
    }
}
